package com.example.customer.listener;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class DirectListener {
    @RabbitListener(queues = "queue")
    public void receiveDirectMessage(String message){
        System.out.println("directMessage："+message);
    }
}
